<?php
class Admin_Model_Bus extends TBB_Db_Table_Abstract
{
	/**
	 * Model name
	 * @var string
	 */
	protected $_name = 'bus';
	
	/**
	 * Primary column
	 * @var string
	 */
	protected $_primary = 'bus_id';

	/**
	 * Get bus reg number array
	 * @return array
	 */
	public function getBusIDBusRegNumberMap()
	{
		$buses = $this->_getAll();
		$result = array();
		foreach($buses as $bus) {
			$result[$bus['bus_id']] = $bus['reg_number'];	
		}
		return $result;
	}
}